package com.bookstore.bean;

import java.util.List;

/**
 * 实现分页
 * @param <T>
 */
public class Page<T> {
    private Class<T> bean;
    private Integer pageNo;
    private Integer prevPage;
    private Integer nextPage;
    private Integer totalPage;
    private List<T> list;

    public Page() {
    }

    public Page(Class<T> bean,Integer pageNo, Integer prevPage, Integer nextPage, Integer totalPage, List<T> list) {
        this.bean=bean;
        this.pageNo = pageNo;
        this.prevPage = prevPage;
        this.nextPage = nextPage;
        this.totalPage = totalPage;
        this.list = list;
    }

    public Integer getPageNo() {
        return pageNo;
    }


    public Integer getPrevPage() {
        return prevPage;
    }

    public void setPrevPage(Integer prevPage) {
        this.prevPage = prevPage;
    }

    public Integer getNextPage() {
        return nextPage;
    }

    public void setNextPage(Integer nextPage) {
        this.nextPage = nextPage;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
